cmake_minimum_required(VERSION 3.0.2)
project(dynamic_object_visualization)

add_compile_options(-std=c++14)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  autoware_perception_msgs
  geometry_msgs
  sensor_msgs
  visualization_msgs
)

catkin_package(INCLUDE_DIRS include
  CATKIN_DEPENDS
    roscpp
    autoware_perception_msgs
    geometry_msgs
    sensor_msgs
    visualization_msgs
)

include_directories(include ${catkin_INCLUDE_DIRS})

add_executable(dynamic_object_visualizer_node
  src/dynamic_object_visualizer.cpp
  src/main.cpp
)

add_dependencies(dynamic_object_visualizer_node
  ${${PROJECT_NAME}_EXPORTED_TARGETS}
  ${catkin_EXPORTED_TARGETS}
)

target_link_libraries(dynamic_object_visualizer_node ${catkin_LIBRARIES})

install(TARGETS dynamic_object_visualizer_node
        ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
        LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
        RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

install(
  DIRECTORY
    launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
